﻿using System;
using System.Runtime.Serialization;

namespace TableTop.DataModel.Text
{
    [DataContract(Namespace = "http://www.tabletop.net/Text")]
    public class Note
    {
        private DateTime _CreationTime;
        private DateTime _ModifyTime;

        public DateTime CreationTime
        {
            get
            {
                return this._CreationTime;
            }

            private set
            {
                this._CreationTime = value;
                this._ModifyTime = value;
            }
        }

        public DateTime ModifyTime
        {
            get
            {
                return this.ModifyTime;
            }

            set
            {
                this._ModifyTime = value;
            }
        }

        public String Text
        {
            get;
            set;
        }

        public Note()
            : this(String.Empty)
        {

        }

        public Note(String Text)
        {
            this.CreationTime = DateTime.Now;
            this.Text = Text;
        }
    }
}
